package com.daikit.daikit4gxt.client.action;

import com.daikit.daikit4gxt.client.DkBaseErrorHandler;


/**
 * A {@link DkBaseAsyncCallback} which does nothing (to be used typically when result of action is to be used in next
 * action and nothing has to be done in the action calling this callback)
 *
 * @author tcaselli
 * @version $Revision$ Last modifier: $Author$ Last commit: $Date$
 * @param <T>
 */
public class DkEmptyAsyncCallback<T> extends DkBaseAsyncCallback<T>
{


	/**
	 * Constructor with parent action (the action which will call this callback)
	 *
	 * @param action
	 *           the parent action
	 * @param propagateFailure
	 *           a boolean indicating whether failure should be propagated to {@link DkBaseErrorHandler} to be treated in
	 *           the standard error handling mechanism or not (if false, then the chain will swallow eventual error that
	 *           should be treated in {@link #processFailure(Throwable)} method)
	 */
	public DkEmptyAsyncCallback(final DkBaseAction<T> action, final boolean propagateFailure)
	{
		super(action, propagateFailure);
	}

	@Override
	public final void processSuccess(final T result)
	{
		// Nothing done
	}

}
